package com.zzq.enumerate;

import lombok.Getter;

public enum OssPathEnum {

    CLIENT_AVATAR("用户头像","CLIENT_AVATAR","templates/client/avatar/"),
    CLIENT_MASTER("原图","CLIENT_MASTER","templates/client/master/"),
    CLIENT_MASTER_WATERMARK("原图水印","CLIENT_MASTER_WATERMARK","templates/client/watermark/"),
    CLIENT_MEITU("美图修理完后","CLIENT_MEITU","templates/client/meitu/"),
    STATIC_RESOURCES("静态资源","STATIC_RESOURCES","templates/static/"),
    Address_RESOURCES("地址封面","STATIC_RESOURCES","templates/adress/cover/"),
    PHOTOGRAPHER_ADDRESS_SAMPLE("地址样片","PHOTOGRAPHER_ADDRESS_SAMPLE","templates/address/sample/"),
    PHOTOGRAPHER_AVATAR("摄影师头像","PHOTOGRAPHER_AVATAR","templates/photographer/avatar/"),
    GOODS_RESOURCES("摄影师头像","PHOTOGRAPHER_AVATAR","templates/goods/cover/");
    @Getter
    private String describe;
    @Getter
    private String name;

    private String path;


    public String getPath() {
        return path;
    }
    public String getPath(String... sonPaths) {
        String newpath=path;
        for (String sonPath : sonPaths) {
            newpath= path+sonPath+"/";
        }
        return  newpath;
    }

    OssPathEnum(String describe, String name, String path) {
        this.describe = describe;
        this.name = name;
        this.path=path;
    }
}
